home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.vms < prev    next >
Text File  |  1996-07-05  |  5KB  |  151 lines

  1. /*   ncbilcl.h - OpenVMS version (VAX and AXP)
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler
  29. *
  30. * Version Creation Date:   1/1/91
  31. *
  32. * $Revision: 2.6 $
  33. *
  34. * File Description:
  35. *        system dependent header
  36. *        OpenVMS version, VAX or AXP
  37. *
  38. * Modifications:
  39. * --------------------------------------------------------------------------
  40. * Date     Name        Description of modification
  41. * -------  ----------  -----------------------------------------------------
  42. *
  43. * 26-FEB-1991 L. Yarbrough VMS Version
  44. * 30-APR-1992 W. Gilbert   Changed include file location to accomodate
  45. *                          TCP/IP suites.
  46. *
  47. * ==========================================================================
  48. */
  49. #ifndef _NCBILCL_
  50. #define _NCBILCL_
  51.  
  52. /* PLATFORM DEFINITION FOR OpenVMS, VAX or AXP */
  53.  
  54. #define COMP_BSD
  55. #define OS_VMS
  56. #define PROC_VAX
  57. #define WIN_DUMB
  58.  
  59. /*----------------------------------------------------------------------*/
  60. /*      Desired or available feature list                               */
  61. /*----------------------------------------------------------------------*/
  62.  
  63. /*----------------------------------------------------------------------*/
  64. /*      #includes                                                       */
  65. /*----------------------------------------------------------------------*/
  66.  
  67. #include <types.h>
  68. #include <limits.h>
  69. #include <stat.h>
  70.  
  71. #include <stddef.h>
  72. #include <stdio.h>
  73. #include <ctype.h>
  74. #include <string.h>
  75. /* #include <malloc.h> */                                   /*WAG*/
  76. /* #include <memory.h> */                                   /*WAG*/
  77. #include <stdlib.h>
  78. #include <math.h>
  79. #include <errno.h>
  80. #include <float.h>
  81.  
  82. /*----------------------------------------------------------------------*/
  83. /*      Missing ANSI-isms                                               */
  84. /*----------------------------------------------------------------------*/
  85. #define signed        /* "signed" keyword not accepted by Sun C */
  86. #define const        /* "const" keyword not accepted by Sun C */
  87. #define noalias        /* "noalias" keyword not accepted by Sun C */
  88. #define volatile    /* "volatile" keyword not accepted by Sun C */
  89. #define CLK_TCK        60
  90.  
  91. #ifndef SEEK_SET
  92. #define SEEK_SET    0
  93. #define SEEK_CUR    1
  94. #define SEEK_END    2
  95. #endif
  96. #ifndef FILENAME_MAX
  97. #define FILENAME_MAX 32
  98. #endif
  99.  
  100. /*----------------------------------------------------------------------*/
  101. /*      Aliased Logicals, Datatypes                                     */
  102. /*----------------------------------------------------------------------*/
  103.  
  104. /*----------------------------------------------------------------------*/
  105. /*      Misc Macros                                                     */
  106. /*----------------------------------------------------------------------*/
  107. #define PROTO(x)    x    /* Function prototypes are real */
  108. #define VPROTO(x)    x    /* Prototype for variable argument list */
  109. #define DIRDELIMCHR    ']'
  110. #define DIRDELIMSTR    "."
  111. #define CWDSTR    "."
  112.  
  113. #define KBYTE    (1024)
  114. #define MBYTE    (1048576)
  115.  
  116. #define IS_LITTLE_ENDIAN    /* DEC VAX */
  117. #ifndef PATH_MAX
  118. #define PATH_MAX 1024
  119. #endif
  120.  
  121. /*----------------------------------------------------------------------*/
  122. /*      For importing MS_DOS code                                       */
  123. /*----------------------------------------------------------------------*/
  124. #define near
  125. #define far
  126. #define huge
  127. #define cdecl
  128. #define pascal
  129. #define _pascal
  130. #define _near
  131. #define _far
  132. #define _huge
  133. #define _cdecl
  134.  
  135. /*----------------------------------------------------------------------*/
  136. /*      Macros for Floating Point                                       */
  137. /*----------------------------------------------------------------------*/
  138. #define EXP2(x) exp((x)*LN2)
  139. #define LOG2(x) (log(x)*(1./LN2))
  140. #define EXP10(x) exp((x)*LN10)
  141. #define LOG10(x) (log(x)*(1./LN10))
  142.  
  143. /*----------------------------------------------------------------------*/
  144. /*      Macros Defining Limits                                          */
  145. /*----------------------------------------------------------------------*/
  146. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  147.  
  148. #endif
  149.  
  150.  
  151.